package app

import (
	"github.com/go-apibox/api"
)

func (app *App) GetRouter() []*api.Route {
	return []*api.Route{
		api.NewRoute("Say.Hello", ActionSayHello),
		api.NewRoute("User.Login", ActionUserLogin),
		api.NewRoute("User.Logout", ActionUserLogout),

		api.NewRoute("Config.List", ActionConfigList),
		api.NewRoute("Config.Create", ActionConfigCreate),
		api.NewRoute("Config.Update", ActionConfigUpdate),
		api.NewRoute("Config.Detail", ActionConfigDetail),
		api.NewRoute("Config.SetDefault", ActionConfigSetDefault),
		api.NewRoute("Config.GetDefault", ActionConfigGetDefault),
		api.NewRoute("Config.Delete", ActionConfigDelete),

		api.NewRoute("DeviceGroup.List", ActionDeviceGroupList),
		api.NewRoute("DeviceGroup.Create", ActionDeviceGroupCreate),
		api.NewRoute("DeviceGroup.Update", ActionDeviceGroupUpdate),
		api.NewRoute("DeviceGroup.Detail", ActionDeviceGroupDetail),
		api.NewRoute("DeviceGroup.Delete", ActionDeviceGroupDelete),
		api.NewRoute("DeviceGroup.GetProduct", ActionDeviceGroupGetProduct),

		api.NewRoute("Device.List", ActionDeviceList),
		api.NewRoute("Device.Create", ActionDeviceCreate),
		api.NewRoute("Device.Update", ActionDeviceUpdate),
		api.NewRoute("Device.Detail", ActionDeviceDetail),
		api.NewRoute("Device.Delete", ActionDeviceDelete),

		api.NewRoute("Task.List", ActionTaskList),
		api.NewRoute("Task.Create", ActionTaskCreate),
		api.NewRoute("Task.Detail", ActionTaskDetail),
		api.NewRoute("Task.Delete", ActionTaskDelete),

		api.NewRoute("TaskGroup.List", ActionTaskGroupList),
		api.NewRoute("TaskGroup.Create", ActionTaskGroupCreate),
		api.NewRoute("TaskGroup.Detail", ActionTaskGroupDetail),
		api.NewRoute("TaskGroup.Delete", ActionTaskGroupDelete),

		api.NewRoute("Product.List", ActionProductList),
		api.NewRoute("Product.Detail", ActionProductDetail),
		api.NewRoute("Product.Delete", ActionProductDelete),

		api.NewRoute("TaskLog.List", ActionTaskLogList),
		api.NewRoute("TaskLog.Detail", ActionTaskLogDetail),
		api.NewRoute("TaskLog.Delete", ActionTaskLogDelete),

		api.NewRoute("Attachment.Upload", ActionAttachmentUpload),
		api.NewRoute("Attachment.Download", ActionAttachmentDownload),

		api.NewRoute("Group.List", ActionMockGroupList),
		api.NewRoute("Product.Next", ActionMockProductNext),
	}

}
